package com.draven.service;

import com.draven.entity.News;
import com.draven.model.BaseConditionVO;

import java.util.List;

/**
 * Created by Draven on 2017/4/18.
 * E-mail:draven1122@163.com
 */
public interface NewsService {
    public static final String SERVICE_NAME = "newsService";

    News getNews(String id);

    int addNews(News news) throws Exception;

    int addNewsSelective(News news) throws Exception;

    int removeNews(String id) throws Exception;

    int updateNews(News news) throws Exception;

    int updateNewsSelective(News news) throws Exception;

    List<News> listNews(BaseConditionVO vo) throws Exception;

    int countNews(BaseConditionVO vo) throws Exception;
}
